/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
import $protobuf from "protobufjs/minimal.js";

// Common aliases
const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
const $root = $protobuf.roots.roomdata || ($protobuf.roots.roomdata = {});

export const com = $root.com = (() => {

    /**
     * Namespace com.
     * @exports com
     * @namespace
     */
    const com = {};

    com.iamteer = (function() {

        /**
         * Namespace iamteer.
         * @memberof com
         * @namespace
         */
        const iamteer = {};

        iamteer.wcf = (function() {

            /**
             * Namespace wcf.
             * @memberof com.iamteer
             * @namespace
             */
            const wcf = {};

            wcf.RoomData = (function() {

                /**
                 * Properties of a RoomData.
                 * @memberof com.iamteer.wcf
                 * @interface IRoomData
                 * @property {Array.<com.iamteer.wcf.RoomData.IRoomMember>|null} [members] RoomData members
                 * @property {number|null} [field_2] RoomData field_2
                 * @property {number|null} [field_3] RoomData field_3
                 * @property {number|null} [field_4] RoomData field_4
                 * @property {number|null} [roomCapacity] RoomData roomCapacity
                 * @property {number|null} [field_6] RoomData field_6
                 * @property {number|Long|null} [field_7] RoomData field_7
                 * @property {number|Long|null} [field_8] RoomData field_8
                 */

                /**
                 * Constructs a new RoomData.
                 * @memberof com.iamteer.wcf
                 * @classdesc Represents a RoomData.
                 * @implements IRoomData
                 * @constructor
                 * @param {com.iamteer.wcf.IRoomData=} [properties] Properties to set
                 */
                function RoomData(properties) {
                    this.members = [];
                    if (properties)
                        for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                            if (properties[keys[i]] != null)
                                this[keys[i]] = properties[keys[i]];
                }

                /**
                 * RoomData members.
                 * @member {Array.<com.iamteer.wcf.RoomData.IRoomMember>} members
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.members = $util.emptyArray;

                /**
                 * RoomData field_2.
                 * @member {number} field_2
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_2 = 0;

                /**
                 * RoomData field_3.
                 * @member {number} field_3
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_3 = 0;

                /**
                 * RoomData field_4.
                 * @member {number} field_4
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_4 = 0;

                /**
                 * RoomData roomCapacity.
                 * @member {number} roomCapacity
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.roomCapacity = 0;

                /**
                 * RoomData field_6.
                 * @member {number} field_6
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_6 = 0;

                /**
                 * RoomData field_7.
                 * @member {number|Long} field_7
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_7 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

                /**
                 * RoomData field_8.
                 * @member {number|Long} field_8
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 */
                RoomData.prototype.field_8 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

                /**
                 * Creates a new RoomData instance using the specified properties.
                 * @function create
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {com.iamteer.wcf.IRoomData=} [properties] Properties to set
                 * @returns {com.iamteer.wcf.RoomData} RoomData instance
                 */
                RoomData.create = function create(properties) {
                    return new RoomData(properties);
                };

                /**
                 * Encodes the specified RoomData message. Does not implicitly {@link com.iamteer.wcf.RoomData.verify|verify} messages.
                 * @function encode
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {com.iamteer.wcf.IRoomData} message RoomData message or plain object to encode
                 * @param {$protobuf.Writer} [writer] Writer to encode to
                 * @returns {$protobuf.Writer} Writer
                 */
                RoomData.encode = function encode(message, writer) {
                    if (!writer)
                        writer = $Writer.create();
                    if (message.members != null && message.members.length)
                        for (let i = 0; i < message.members.length; ++i)
                            $root.com.iamteer.wcf.RoomData.RoomMember.encode(message.members[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
                    if (message.field_2 != null && Object.hasOwnProperty.call(message, "field_2"))
                        writer.uint32(/* id 2, wireType 0 =*/16).int32(message.field_2);
                    if (message.field_3 != null && Object.hasOwnProperty.call(message, "field_3"))
                        writer.uint32(/* id 3, wireType 0 =*/24).int32(message.field_3);
                    if (message.field_4 != null && Object.hasOwnProperty.call(message, "field_4"))
                        writer.uint32(/* id 4, wireType 0 =*/32).int32(message.field_4);
                    if (message.roomCapacity != null && Object.hasOwnProperty.call(message, "roomCapacity"))
                        writer.uint32(/* id 5, wireType 0 =*/40).int32(message.roomCapacity);
                    if (message.field_6 != null && Object.hasOwnProperty.call(message, "field_6"))
                        writer.uint32(/* id 6, wireType 0 =*/48).int32(message.field_6);
                    if (message.field_7 != null && Object.hasOwnProperty.call(message, "field_7"))
                        writer.uint32(/* id 7, wireType 0 =*/56).int64(message.field_7);
                    if (message.field_8 != null && Object.hasOwnProperty.call(message, "field_8"))
                        writer.uint32(/* id 8, wireType 0 =*/64).int64(message.field_8);
                    return writer;
                };

                /**
                 * Encodes the specified RoomData message, length delimited. Does not implicitly {@link com.iamteer.wcf.RoomData.verify|verify} messages.
                 * @function encodeDelimited
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {com.iamteer.wcf.IRoomData} message RoomData message or plain object to encode
                 * @param {$protobuf.Writer} [writer] Writer to encode to
                 * @returns {$protobuf.Writer} Writer
                 */
                RoomData.encodeDelimited = function encodeDelimited(message, writer) {
                    return this.encode(message, writer).ldelim();
                };

                /**
                 * Decodes a RoomData message from the specified reader or buffer.
                 * @function decode
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
                 * @param {number} [length] Message length if known beforehand
                 * @returns {com.iamteer.wcf.RoomData} RoomData
                 * @throws {Error} If the payload is not a reader or valid buffer
                 * @throws {$protobuf.util.ProtocolError} If required fields are missing
                 */
                RoomData.decode = function decode(reader, length) {
                    if (!(reader instanceof $Reader))
                        reader = $Reader.create(reader);
                    let end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.iamteer.wcf.RoomData();
                    while (reader.pos < end) {
                        let tag = reader.uint32();
                        switch (tag >>> 3) {
                        case 1: {
                                if (!(message.members && message.members.length))
                                    message.members = [];
                                message.members.push($root.com.iamteer.wcf.RoomData.RoomMember.decode(reader, reader.uint32()));
                                break;
                            }
                        case 2: {
                                message.field_2 = reader.int32();
                                break;
                            }
                        case 3: {
                                message.field_3 = reader.int32();
                                break;
                            }
                        case 4: {
                                message.field_4 = reader.int32();
                                break;
                            }
                        case 5: {
                                message.roomCapacity = reader.int32();
                                break;
                            }
                        case 6: {
                                message.field_6 = reader.int32();
                                break;
                            }
                        case 7: {
                                message.field_7 = reader.int64();
                                break;
                            }
                        case 8: {
                                message.field_8 = reader.int64();
                                break;
                            }
                        default:
                            reader.skipType(tag & 7);
                            break;
                        }
                    }
                    return message;
                };

                /**
                 * Decodes a RoomData message from the specified reader or buffer, length delimited.
                 * @function decodeDelimited
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
                 * @returns {com.iamteer.wcf.RoomData} RoomData
                 * @throws {Error} If the payload is not a reader or valid buffer
                 * @throws {$protobuf.util.ProtocolError} If required fields are missing
                 */
                RoomData.decodeDelimited = function decodeDelimited(reader) {
                    if (!(reader instanceof $Reader))
                        reader = new $Reader(reader);
                    return this.decode(reader, reader.uint32());
                };

                /**
                 * Verifies a RoomData message.
                 * @function verify
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {Object.<string,*>} message Plain object to verify
                 * @returns {string|null} `null` if valid, otherwise the reason why it is not
                 */
                RoomData.verify = function verify(message) {
                    if (typeof message !== "object" || message === null)
                        return "object expected";
                    if (message.members != null && message.hasOwnProperty("members")) {
                        if (!Array.isArray(message.members))
                            return "members: array expected";
                        for (let i = 0; i < message.members.length; ++i) {
                            let error = $root.com.iamteer.wcf.RoomData.RoomMember.verify(message.members[i]);
                            if (error)
                                return "members." + error;
                        }
                    }
                    if (message.field_2 != null && message.hasOwnProperty("field_2"))
                        if (!$util.isInteger(message.field_2))
                            return "field_2: integer expected";
                    if (message.field_3 != null && message.hasOwnProperty("field_3"))
                        if (!$util.isInteger(message.field_3))
                            return "field_3: integer expected";
                    if (message.field_4 != null && message.hasOwnProperty("field_4"))
                        if (!$util.isInteger(message.field_4))
                            return "field_4: integer expected";
                    if (message.roomCapacity != null && message.hasOwnProperty("roomCapacity"))
                        if (!$util.isInteger(message.roomCapacity))
                            return "roomCapacity: integer expected";
                    if (message.field_6 != null && message.hasOwnProperty("field_6"))
                        if (!$util.isInteger(message.field_6))
                            return "field_6: integer expected";
                    if (message.field_7 != null && message.hasOwnProperty("field_7"))
                        if (!$util.isInteger(message.field_7) && !(message.field_7 && $util.isInteger(message.field_7.low) && $util.isInteger(message.field_7.high)))
                            return "field_7: integer|Long expected";
                    if (message.field_8 != null && message.hasOwnProperty("field_8"))
                        if (!$util.isInteger(message.field_8) && !(message.field_8 && $util.isInteger(message.field_8.low) && $util.isInteger(message.field_8.high)))
                            return "field_8: integer|Long expected";
                    return null;
                };

                /**
                 * Creates a RoomData message from a plain object. Also converts values to their respective internal types.
                 * @function fromObject
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {Object.<string,*>} object Plain object
                 * @returns {com.iamteer.wcf.RoomData} RoomData
                 */
                RoomData.fromObject = function fromObject(object) {
                    if (object instanceof $root.com.iamteer.wcf.RoomData)
                        return object;
                    let message = new $root.com.iamteer.wcf.RoomData();
                    if (object.members) {
                        if (!Array.isArray(object.members))
                            throw TypeError(".com.iamteer.wcf.RoomData.members: array expected");
                        message.members = [];
                        for (let i = 0; i < object.members.length; ++i) {
                            if (typeof object.members[i] !== "object")
                                throw TypeError(".com.iamteer.wcf.RoomData.members: object expected");
                            message.members[i] = $root.com.iamteer.wcf.RoomData.RoomMember.fromObject(object.members[i]);
                        }
                    }
                    if (object.field_2 != null)
                        message.field_2 = object.field_2 | 0;
                    if (object.field_3 != null)
                        message.field_3 = object.field_3 | 0;
                    if (object.field_4 != null)
                        message.field_4 = object.field_4 | 0;
                    if (object.roomCapacity != null)
                        message.roomCapacity = object.roomCapacity | 0;
                    if (object.field_6 != null)
                        message.field_6 = object.field_6 | 0;
                    if (object.field_7 != null)
                        if ($util.Long)
                            (message.field_7 = $util.Long.fromValue(object.field_7)).unsigned = false;
                        else if (typeof object.field_7 === "string")
                            message.field_7 = parseInt(object.field_7, 10);
                        else if (typeof object.field_7 === "number")
                            message.field_7 = object.field_7;
                        else if (typeof object.field_7 === "object")
                            message.field_7 = new $util.LongBits(object.field_7.low >>> 0, object.field_7.high >>> 0).toNumber();
                    if (object.field_8 != null)
                        if ($util.Long)
                            (message.field_8 = $util.Long.fromValue(object.field_8)).unsigned = false;
                        else if (typeof object.field_8 === "string")
                            message.field_8 = parseInt(object.field_8, 10);
                        else if (typeof object.field_8 === "number")
                            message.field_8 = object.field_8;
                        else if (typeof object.field_8 === "object")
                            message.field_8 = new $util.LongBits(object.field_8.low >>> 0, object.field_8.high >>> 0).toNumber();
                    return message;
                };

                /**
                 * Creates a plain object from a RoomData message. Also converts values to other types if specified.
                 * @function toObject
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {com.iamteer.wcf.RoomData} message RoomData
                 * @param {$protobuf.IConversionOptions} [options] Conversion options
                 * @returns {Object.<string,*>} Plain object
                 */
                RoomData.toObject = function toObject(message, options) {
                    if (!options)
                        options = {};
                    let object = {};
                    if (options.arrays || options.defaults)
                        object.members = [];
                    if (options.defaults) {
                        object.field_2 = 0;
                        object.field_3 = 0;
                        object.field_4 = 0;
                        object.roomCapacity = 0;
                        object.field_6 = 0;
                        if ($util.Long) {
                            let long = new $util.Long(0, 0, false);
                            object.field_7 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
                        } else
                            object.field_7 = options.longs === String ? "0" : 0;
                        if ($util.Long) {
                            let long = new $util.Long(0, 0, false);
                            object.field_8 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
                        } else
                            object.field_8 = options.longs === String ? "0" : 0;
                    }
                    if (message.members && message.members.length) {
                        object.members = [];
                        for (let j = 0; j < message.members.length; ++j)
                            object.members[j] = $root.com.iamteer.wcf.RoomData.RoomMember.toObject(message.members[j], options);
                    }
                    if (message.field_2 != null && message.hasOwnProperty("field_2"))
                        object.field_2 = message.field_2;
                    if (message.field_3 != null && message.hasOwnProperty("field_3"))
                        object.field_3 = message.field_3;
                    if (message.field_4 != null && message.hasOwnProperty("field_4"))
                        object.field_4 = message.field_4;
                    if (message.roomCapacity != null && message.hasOwnProperty("roomCapacity"))
                        object.roomCapacity = message.roomCapacity;
                    if (message.field_6 != null && message.hasOwnProperty("field_6"))
                        object.field_6 = message.field_6;
                    if (message.field_7 != null && message.hasOwnProperty("field_7"))
                        if (typeof message.field_7 === "number")
                            object.field_7 = options.longs === String ? String(message.field_7) : message.field_7;
                        else
                            object.field_7 = options.longs === String ? $util.Long.prototype.toString.call(message.field_7) : options.longs === Number ? new $util.LongBits(message.field_7.low >>> 0, message.field_7.high >>> 0).toNumber() : message.field_7;
                    if (message.field_8 != null && message.hasOwnProperty("field_8"))
                        if (typeof message.field_8 === "number")
                            object.field_8 = options.longs === String ? String(message.field_8) : message.field_8;
                        else
                            object.field_8 = options.longs === String ? $util.Long.prototype.toString.call(message.field_8) : options.longs === Number ? new $util.LongBits(message.field_8.low >>> 0, message.field_8.high >>> 0).toNumber() : message.field_8;
                    return object;
                };

                /**
                 * Converts this RoomData to JSON.
                 * @function toJSON
                 * @memberof com.iamteer.wcf.RoomData
                 * @instance
                 * @returns {Object.<string,*>} JSON object
                 */
                RoomData.prototype.toJSON = function toJSON() {
                    return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
                };

                /**
                 * Gets the default type url for RoomData
                 * @function getTypeUrl
                 * @memberof com.iamteer.wcf.RoomData
                 * @static
                 * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
                 * @returns {string} The default type url
                 */
                RoomData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
                    if (typeUrlPrefix === undefined) {
                        typeUrlPrefix = "type.googleapis.com";
                    }
                    return typeUrlPrefix + "/com.iamteer.wcf.RoomData";
                };

                RoomData.RoomMember = (function() {

                    /**
                     * Properties of a RoomMember.
                     * @memberof com.iamteer.wcf.RoomData
                     * @interface IRoomMember
                     * @property {string|null} [wxid] RoomMember wxid
                     * @property {string|null} [name] RoomMember name
                     * @property {number|null} [state] RoomMember state
                     */

                    /**
                     * Constructs a new RoomMember.
                     * @memberof com.iamteer.wcf.RoomData
                     * @classdesc Represents a RoomMember.
                     * @implements IRoomMember
                     * @constructor
                     * @param {com.iamteer.wcf.RoomData.IRoomMember=} [properties] Properties to set
                     */
                    function RoomMember(properties) {
                        if (properties)
                            for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                                if (properties[keys[i]] != null)
                                    this[keys[i]] = properties[keys[i]];
                    }

                    /**
                     * RoomMember wxid.
                     * @member {string} wxid
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @instance
                     */
                    RoomMember.prototype.wxid = "";

                    /**
                     * RoomMember name.
                     * @member {string} name
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @instance
                     */
                    RoomMember.prototype.name = "";

                    /**
                     * RoomMember state.
                     * @member {number} state
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @instance
                     */
                    RoomMember.prototype.state = 0;

                    /**
                     * Creates a new RoomMember instance using the specified properties.
                     * @function create
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {com.iamteer.wcf.RoomData.IRoomMember=} [properties] Properties to set
                     * @returns {com.iamteer.wcf.RoomData.RoomMember} RoomMember instance
                     */
                    RoomMember.create = function create(properties) {
                        return new RoomMember(properties);
                    };

                    /**
                     * Encodes the specified RoomMember message. Does not implicitly {@link com.iamteer.wcf.RoomData.RoomMember.verify|verify} messages.
                     * @function encode
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {com.iamteer.wcf.RoomData.IRoomMember} message RoomMember message or plain object to encode
                     * @param {$protobuf.Writer} [writer] Writer to encode to
                     * @returns {$protobuf.Writer} Writer
                     */
                    RoomMember.encode = function encode(message, writer) {
                        if (!writer)
                            writer = $Writer.create();
                        if (message.wxid != null && Object.hasOwnProperty.call(message, "wxid"))
                            writer.uint32(/* id 1, wireType 2 =*/10).string(message.wxid);
                        if (message.name != null && Object.hasOwnProperty.call(message, "name"))
                            writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
                        if (message.state != null && Object.hasOwnProperty.call(message, "state"))
                            writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state);
                        return writer;
                    };

                    /**
                     * Encodes the specified RoomMember message, length delimited. Does not implicitly {@link com.iamteer.wcf.RoomData.RoomMember.verify|verify} messages.
                     * @function encodeDelimited
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {com.iamteer.wcf.RoomData.IRoomMember} message RoomMember message or plain object to encode
                     * @param {$protobuf.Writer} [writer] Writer to encode to
                     * @returns {$protobuf.Writer} Writer
                     */
                    RoomMember.encodeDelimited = function encodeDelimited(message, writer) {
                        return this.encode(message, writer).ldelim();
                    };

                    /**
                     * Decodes a RoomMember message from the specified reader or buffer.
                     * @function decode
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
                     * @param {number} [length] Message length if known beforehand
                     * @returns {com.iamteer.wcf.RoomData.RoomMember} RoomMember
                     * @throws {Error} If the payload is not a reader or valid buffer
                     * @throws {$protobuf.util.ProtocolError} If required fields are missing
                     */
                    RoomMember.decode = function decode(reader, length) {
                        if (!(reader instanceof $Reader))
                            reader = $Reader.create(reader);
                        let end = length === undefined ? reader.len : reader.pos + length, message = new $root.com.iamteer.wcf.RoomData.RoomMember();
                        while (reader.pos < end) {
                            let tag = reader.uint32();
                            switch (tag >>> 3) {
                            case 1: {
                                    message.wxid = reader.string();
                                    break;
                                }
                            case 2: {
                                    message.name = reader.string();
                                    break;
                                }
                            case 3: {
                                    message.state = reader.int32();
                                    break;
                                }
                            default:
                                reader.skipType(tag & 7);
                                break;
                            }
                        }
                        return message;
                    };

                    /**
                     * Decodes a RoomMember message from the specified reader or buffer, length delimited.
                     * @function decodeDelimited
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
                     * @returns {com.iamteer.wcf.RoomData.RoomMember} RoomMember
                     * @throws {Error} If the payload is not a reader or valid buffer
                     * @throws {$protobuf.util.ProtocolError} If required fields are missing
                     */
                    RoomMember.decodeDelimited = function decodeDelimited(reader) {
                        if (!(reader instanceof $Reader))
                            reader = new $Reader(reader);
                        return this.decode(reader, reader.uint32());
                    };

                    /**
                     * Verifies a RoomMember message.
                     * @function verify
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {Object.<string,*>} message Plain object to verify
                     * @returns {string|null} `null` if valid, otherwise the reason why it is not
                     */
                    RoomMember.verify = function verify(message) {
                        if (typeof message !== "object" || message === null)
                            return "object expected";
                        if (message.wxid != null && message.hasOwnProperty("wxid"))
                            if (!$util.isString(message.wxid))
                                return "wxid: string expected";
                        if (message.name != null && message.hasOwnProperty("name"))
                            if (!$util.isString(message.name))
                                return "name: string expected";
                        if (message.state != null && message.hasOwnProperty("state"))
                            if (!$util.isInteger(message.state))
                                return "state: integer expected";
                        return null;
                    };

                    /**
                     * Creates a RoomMember message from a plain object. Also converts values to their respective internal types.
                     * @function fromObject
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {Object.<string,*>} object Plain object
                     * @returns {com.iamteer.wcf.RoomData.RoomMember} RoomMember
                     */
                    RoomMember.fromObject = function fromObject(object) {
                        if (object instanceof $root.com.iamteer.wcf.RoomData.RoomMember)
                            return object;
                        let message = new $root.com.iamteer.wcf.RoomData.RoomMember();
                        if (object.wxid != null)
                            message.wxid = String(object.wxid);
                        if (object.name != null)
                            message.name = String(object.name);
                        if (object.state != null)
                            message.state = object.state | 0;
                        return message;
                    };

                    /**
                     * Creates a plain object from a RoomMember message. Also converts values to other types if specified.
                     * @function toObject
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {com.iamteer.wcf.RoomData.RoomMember} message RoomMember
                     * @param {$protobuf.IConversionOptions} [options] Conversion options
                     * @returns {Object.<string,*>} Plain object
                     */
                    RoomMember.toObject = function toObject(message, options) {
                        if (!options)
                            options = {};
                        let object = {};
                        if (options.defaults) {
                            object.wxid = "";
                            object.name = "";
                            object.state = 0;
                        }
                        if (message.wxid != null && message.hasOwnProperty("wxid"))
                            object.wxid = message.wxid;
                        if (message.name != null && message.hasOwnProperty("name"))
                            object.name = message.name;
                        if (message.state != null && message.hasOwnProperty("state"))
                            object.state = message.state;
                        return object;
                    };

                    /**
                     * Converts this RoomMember to JSON.
                     * @function toJSON
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @instance
                     * @returns {Object.<string,*>} JSON object
                     */
                    RoomMember.prototype.toJSON = function toJSON() {
                        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
                    };

                    /**
                     * Gets the default type url for RoomMember
                     * @function getTypeUrl
                     * @memberof com.iamteer.wcf.RoomData.RoomMember
                     * @static
                     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
                     * @returns {string} The default type url
                     */
                    RoomMember.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
                        if (typeUrlPrefix === undefined) {
                            typeUrlPrefix = "type.googleapis.com";
                        }
                        return typeUrlPrefix + "/com.iamteer.wcf.RoomData.RoomMember";
                    };

                    return RoomMember;
                })();

                return RoomData;
            })();

            return wcf;
        })();

        return iamteer;
    })();

    return com;
})();

export default $root;
